﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DiscoveryLogic.Analytics.UI.Common;
using Microsoft.Practices.Composite.Modularity;
using Microsoft.Practices.Composite.Regions;

namespace DiscoveryLogic.Analytics.Modules.Props
{
	public class PropGridModule:IModule 
	{
		private readonly IRegionManager regionManager;

		public PropGridModule(IRegionManager regionMgr)
		{
			this.regionManager = regionMgr;
		}

		#region Implementation of IModule

		public void Initialize()
		{
			IRegion mainRegion = this.regionManager.Regions[OutlookLikeRegionNames.PropGridPane];
			mainRegion.Add(new PropGridView());
		}

		#endregion
	}
}
